<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        width: 180px;
        height: 300px;
        border: 1px solid #000;
        margin: 50px auto;
        background: url("./images/run.png") no-repeat;
        background-position: 0px 0px;
        /* animation: move 10s infinite; */
        animation-name: running;
        animation-duration: 2s;
        animation-iteration-count: infinite;
        animation-timing-function: step-end;
      }

      @keyframes running {
        0% {
          background-position: 0px 0px;
        }

        16.6% {
          background-position: -180px 0;
        }
        33.3% {
          background-position: -360px 0;
        }
        50% {
          background-position: -540px 0;
        }
        66.6% {
          background-position: -720px 0;
        }
        83.3% {
          background-position: -900px 0;
        }

        100% {
          background-position: -1080px 0px;
        }
      }
    </style>
  </head>
  <body>
    <div></div>
  </body>
</html>
